import { defineComponent } from "vue";
export default defineComponent({
  name: "RenderDom",
  props: {
    value: {}, //默认展示数据
    renderFn: Function,
    scope: Object, //表格数据
  },
  setup(props) {
    return () => {
      if (props.renderFn) {
        return props.renderFn(props.scope);
      }
      return <span>{props.value}</span>;
    };
  },
});
